<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://g-project.homeunix.net/demo/components">
<body>
<ui:composition>

    <h:panelGrid columns="2" rendered="#{readonly}">
        <h:outputLabel for="firstName_ro" value="#{messages.first_name}:"/>
        <h:outputText id="firstName_ro" value="#{bean.person.firstName}"/>

        <h:outputLabel for="lastName_ro" value="#{messages.last_name}:"/>
        <h:outputText id="lastName_ro" value="#{bean.person.lastName}"/>
    </h:panelGrid>

    <h3>no group:</h3>
    <c:userInput bean="#{bean}" readonly="#{readonly}" id_prefix="nog"/>

    <h3>name group:</h3>
    <c:userInput bean="#{bean}" readonly="#{readonly}" id_prefix="ng">
        <ui:define name="groups">
            <c:useGroup value="at.gp.web.jsf.extval.domain.group.NameGroup"/>
        </ui:define>
    </c:userInput>

    <h3>minimal group:</h3>
    <c:userInput bean="#{bean}" readonly="#{readonly}" id_prefix="mg">
        <ui:define name="groups">
            <c:useGroup value="at.gp.web.jsf.extval.domain.group.MinimalGroup"/>
        </ui:define>
    </c:userInput>
</ui:composition>
</body>
</html>
